Skip to main content

Forms Lab (User Input Form)

Objective

Create a Form

  1. Has only one tab: Person info
  2. Has only one section: Person Details

Person Details section should include these fields:

  • first name
  • last name
  • email
  • department (where the department is a dropdown list that is bound to a static data source).

Credentials:

  • User ID: Test
  • Password: P@$$w0rd

Steps:

  1. Start the 20331B-NYC-DC-05 virtual machine. Wait for the virtual machine to display the Desktop.

  2. On your Desktop, Right-click Workflow Studio (WFS), and then click Run as administrator. Workflow Page

  3. Wait for WFS to start and enter your credentials.

Workflow Page
Workflow Page
  1. In Solution Explorer, right-click on the Developer Packages folder, create a new folder called DemoLabs, and click the Ok button. Workflow Page

  2. Add New Folder dialog box will appear. From it, select the following options:

    • User Interface > Lookup Control
    • User Interface > Forms
    • User Interface > UI Pages
    • Workflows > Applications
    • And click the Ok button. Workflow Page
  3. Expand the Developer Packages folder, find the DemoLabs folder, expand it, then under the DemoLabs folder, expand the User Interface folder, right-click on the Forms folder, hover your mouse on the New User Interface option, and click on Form. Workflow Page

  4. Wait for the Form designer to load.

  5. Click on the Save button to save your Form and give it the name PersonForm. Workflow Page

  6. Right-click on the Form Data, then click on Add Object and go to the Rbac Components tab. From there, select the Person component and click the Add button. Workflow Page

  7. Double-click on Person1 and rename it to Person only. Workflow Page

  8. Now expand the person component from left navigation and drag and drop the following fields/columns onto the Form Designer:

    • FirstName
    • Last Name
    • Email
    • Department Workflow Page
  9. Now double-click on Tab1 and rename it to Person Info, then double-click on Tab1 Section1 and give it the name Person Details. Lastly, double-click on the FirstName and LastName fields and put a space between them. Workflow Page

  10. Now right-click on the Department field and click on the Edit option. Workflow Page

  11. It will bring up the Field Configuration dialog box. From there, go to the Control Types tab and uncheck the Use Default Control Template checkbox. A list of controls will become enabled; select the DropdownList control and click Ok. Workflow Page

  12. Now right-click on the Data Sources and then click on Add Data Source. Workflow Page

  13. From the Add New Data Source dialog box, select the Create New Data Source option and click on the Next button. Workflow Page

  14. In the Data Source Name textbox, write dsDepartment, select the Custom List option under the DataSource Type, and then click on the Add button and add the following field:

    NameValue
    ITIT
    MarketingMarketing
    SalesSales

Click Finish. Workflow Page

  1. Now right-click on the Department field again and click on the Edit option. Then go to the DataSources tab and uncheck the Use Default Datasource checkbox. Look for your newly created datasource and select it. Workflow Page

  2. Now go to the Standard Properties tab and in the Display Field dropdown select Name and in the Selected Value Path dropdown select the Value. Click on the Ok button. Workflow Page

  3. Now click on the publish button to publish your Form. The publishing dialog box will appear, click on the Next button twice to Publish the Form. Workflow Page

  4. Once published successfully, click on the Ok button. Workflow Page

  5. Now it will ask you to restart the workflow studio, click on the Yes button. Workflow Page

  6. Expand the Developer Packages folder, find the DemoLabs folder, expand it, then under the DemoLabs folder, expand the Workflows folder. Right-click on the Applications folder, hover your mouse on the New Workflow option and click on Flow Chart Workflow. Workflow Page

  7. Wait for the Workflow Designer Pane to load. Once loaded, click on the Save button to save your workflow. Workflow Page

  8. Give your workflow a name; in this case, PersonForm_WF.

  9. Once saved, drag and drop your Form control activity onto the designer pane of the Workflow. Workflow Page

  10. Keep the activity selected. If not selected, then select it, and on the right-hand side, change its (Name) property to PersonActivity. Workflow Page

  11. Now click on the start circle, drag the line from it, connect it with your PersonActivity and similarly connect the lines that will come out from your activity to the End circle. Workflow Page

  12. Now click on the publish button to publish your workflow; a dialog box will appear. Click on the Next button twice. Once saved successfully, click on the Ok button. Workflow Page

  13. Open Internet Explorer, Edge, or whichever browser is installed on your machine and go to this URL: Login using EmpowerID.

  14. Enter the username and password given to you by your lab instructor. Workflow Page

  15. This directs you to your EmpowerID dashboard page. On the left-hand side, click on Low Code/No Code Workflows, and underneath it, click on Low Code Workflows. Workflow Page

  16. It will take you to the RequestWorkflow page, on the right-hand side of your page, we have an actions pane. Under it, click on the Publish Workflow Studio Item. Workflow Page

  17. On the PublishWorkflowStudioItem page, click on choose file, select the .pub file for PersonForm, and then click open file. It will get selected. Now click on the Submit button. Workflow Page

  18. You will get this message which tells that deployment is successful. Workflow Page

  19. Now click on the Publish Workflow Studio Item again, and this time select the PersonForm_WF published file and hit the submit button to publish it.

  20. Close your browser and workflow studio and reset the IIS on your machine. Make sure you open Command Prompt in Administration mode. Workflow Page

  21. Now open EmpowerID on the browser again, expand the Low Code/No Code Workflows, and underneath it, click on Low Code Workflows.

  22. In the search box, type your workflow name PersonForm_WF and hit the search button. Your workflow will appear, click on it under the Run column. Workflow Page

  23. Now you can see your Form Control. Workflow Page

  24. End